<%--
  Created by IntelliJ IDEA.
  User: dd
  Date: 2023/5/9
  Time: 14:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>回访记录</title>
    <script type="application/javascript" src="${pageContext.request.contextPath}/static/js/jquery-3.6.1.min.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui-v2.7.6/layui/css/layui.css" >
    <script src="${pageContext.request.contextPath}/static/layui-v2.7.6/layui/layui.js"></script>
</head>
<body>
<table id="demo" class="demo-carousel" lay-filter="test" ></table>
<script>
    layui.use(['table','form'], function(){
        let table = layui.table;
        let form = layui.form;
        table.render({
            elem: '#demo'
            ,url: '${pageContext.request.contextPath}/TSdsReturnServlet' //数据接口
            ,page: true //开启分页
            ,limit:10
            // ,toolbar:'#toolbarDemo'
            // ,autoSort:false
            ,limits:[5,10,15,20,25,30,100,200]
            ,cols: [[ //表头
                {type: 'checkbox', fixed: 'left',id: 'test'},
                {field: 'id',  width:'5%',title: 'ID', sort: true, fixed: 'left' }
                ,{field: 'recordid', title: '用户编号'}
                ,{field: 'username', title: '用户名'}
                ,{field: 'tel', title: '电话号码'}
                ,{field: 'createtime',title: '回访内容'}
                // ,{field: 'right',width:'20%', title: '操作',toolbar:'#barDemo'}
            ]]
        });
    })
</script>
</body>
</html>
